<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>axios保存一个用户</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
        <script>
            axios({
                method: 'post',
                url: 'http://localhost:8099/users',
                data: {
                    username: 'newUser1',
                    password: '123456',
                    phone: "1234567890",
                    info: "{\"age\":20,\"city\":\"北京\"}",
                    balance: 1000
                }
            }).then((result)=>{
                console.log(result.data);
            }).catch((err=>{
                console.log(err);
            }))
        </script>
</head>
<body>

</body>
</html>